import {
	http
} from "../utils/request"

export const getSwiper = () => {
	return http({
		method: 'GET',
		url: '/prod-api/api/rotation/list?type=2'
	})
}
export const getServe = () => {
	return http({
		method: 'GET',
		url: '/prod-api/api/service/list'
	})
}
export const getNewType = ()=>{
	return http({
		method:'GET',
		url:'/prod-api/press/category/list'
	})
}
export const getNewsList = (type=9)=>{
	return http({
		method:'GET',
		url:`/prod-api/press/press/list?type=${type}`
	})
}
export const getDetailAPI=(id)=>{
	return http({
		method:'GET',
		url:"/prod-api/press/press/"+id
	})
}
export const getSearchAPI=(title)=>{
	console.log(title);
	return http({
		method:"GET",
		url:"/prod-api/press/press/list?title="+title
	})
}
